#$configure terminal
#$pon-onu-mng <%=onuAddress%>
<% if(mode == 'dhcp'){ -%>
#$wan-ip <%=wanIndex%> mode dhcp vlan-profile <%=vlanProfile%> host <%=hostID%>$BREAK
:|#$ENTER
<%}-%>
<% if(mode == 'pppoe'){ -%>
#$wan-ip <%=wanIndex%> mode pppoe username <%=pppoeUsername%> password <%=pppoePassword%> vlan-profile <%=vlanProfile%> host <%=hostID%>$BREAK
:|#$ENTER
<%}-%>
<% if(mode == 'static'){ -%>
#$wan-ip <%=wanIndex%> mode static ip-profile <%=ipProfile%> ip-address <%=ipAddress%> mask <%=mask%> vlan-profile <%=vlanProfile%> host <%=hostID%>$BREAK
:|#$ENTER
<%}-%>
#$exit